package thinker.miracle.business.user.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import thinker.miracle.business.user.entity.UserInfoEntity;
import thinker.miracle.commons.Page;


/**
 * @author bo.chen
 *
 */
public interface UserInfoDao {

	List<UserInfoEntity> findList(Page<UserInfoEntity> page);
	
	void insert(UserInfoEntity userInfoEntity);
	
	void updateSelective(UserInfoEntity userInfoEntity);
	
	List<UserInfoEntity> findByEmail(String email);
	
	List<UserInfoEntity> findById(String id);
	
	List<UserInfoEntity> findByPhone(String phone);
	
	List<UserInfoEntity> findByPhoneAndPassword(@Param("phone")String phone,@Param("password")String password);
	
	List<UserInfoEntity> findByEmailAndPassword(@Param("email")String email,@Param("password")String password);
}
